﻿@model File_Manager.Models.Post_CYT

@{
    ViewBag.Title = "Responder";
}

<h2>Responder N° Ticket @Html.DisplayFor(model => model.id)</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Datos Remitente</legend>
                @Html.HiddenFor(model => model.id)
            <table width="100%">
                <tr>
                    <td width="33%">
                        <div class="editor-label"><b>@Html.LabelFor(model => model.userName)</b></div>
                        <div class="display-field">
                                @Html.DisplayFor(model => model.userName)
                        </div>
                    </td>
                    <td>
                        <div class="editor-label"><b>Nombre Remitente</b></div>
                        <div class="display-field">
                            @ViewBag.nameGuest
                        </div>
                    </td>
                    <td>
                        <div class="editor-label"><b>Apellido Remitente</b></div>
                        <div class="display-field">
                            @ViewBag.lastnameGuest
                        </div>
                    </td>
                </tr>
                <tr>
                    <td width="33%">
                        <div class="editor-label"><b>@Html.LabelFor(model => model.dateGuest)</b></div>
                        <div class="display-field">
                            @Html.DisplayFor(model => model.dateGuest)
                        </div>
                    </td>
                    <td>
                        <div class="editor-label"><b>Correo Remitente</b></div>
                        <div class="display-field">
                        @ViewBag.mailGuest
                        </div>
                    </td>
                    <td>
                        <div class="editor-label"><b>@Html.LabelFor(model => model.idStatus)</b></div>
                        <div class="display-field">
                            @Html.DisplayFor(model => model.nStatus.name)
                        </div>
                    </td>
                </tr>
            </table>
    </fieldset>
    <fieldset>
        <legend>Mensaje CYT</legend>
            <table width="100%">
               <tr>
                   <td width="33%">
                        <div class="editor-label"><b>@Html.LabelFor(model => model.asunto)</b></div>
                        <div class="display-field">
                            @Html.DisplayFor(model => model.asunto)
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="editor-label"><b>@Html.LabelFor(model => model.textoGuest)</b></div>
                        <div class="display-field">
                            @Html.TextAreaFor(model => model.textoGuest, new { rows = "6", cols = "80", maxlength = "300", @readonly="readonly" })
                        </div>

                    </td>
                </tr>
            </table>
    </fieldset>
    <fieldset>
            <legend>Respuesta CYT</legend>
                <table width="100%">
                    <tr>
                        <td>
                            <div class="editor-label"><b>@Html.LabelFor(model => model.textoAdmin)</b></div>
                            <div class="display-field">
                                @Html.TextAreaFor(model => model.textoAdmin, new { rows = "10", cols = "80", maxlength = "10000" })
                            </div>

                        </td>
                    </tr>
                </table>
    </fieldset>
    
        <p>
            <input type="submit" value="Enviar" />
        </p>
}

<div>
       @Html.ActionLink("Ir a Atras", "DetailsAdmin", new { id = Model.id }) |
</div>
